/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rm.validator.password;

import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.*;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.*;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;

/**
 *
 * @author slavko.bojagic
 */
@Target({METHOD, FIELD, ANNOTATION_TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = PasswordValidator.class)
@Documented
public @interface Password {

	String message() default "Password is not valid!";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};
}
